<?php
return array(
	'formView' => array(
		'fields' => array(
			'id' => false,
			'worker_name' => $model->isNewRecord ? array('textField') : array('class'=>'StringField'),
			'worker_id' => false,
			'worker_password' => $model->isNewRecord ? array('passwordField') : false,
//			'worker_id' => array('dropDownList', Yii::app()->enum->options('worker.worker'),
//				'visible' => 'Yii::app()->adminUser->role == AdminUser::ROLE_OPERATOR',
//			),
			'purview' => array('checkBoxList', Yii::app()->enum->options('system.purview',false),array('separator'=>"")),
		)
	),
	'_import' => array(
		array('*', 'actions.edit//*'),
	),
);